Repository navigation
Conversation
zayenz
force-pushed
the
feature/breaking-7
branch
4 times, most recently
from
November 7, 2026 08:04
08405b4 to
bb0af29
Compare
zayenz
force-pushed
the
feature/breaking-7
branch
from
November 20, 2026 09:39
bb0af29 to
58e3488
Compare
zayenz
changed the base branch from
main
to
feature/breaking-7-10-scoped-enums
November 20, 2026 09:39
This was referenced Nov 20, 2026
zayenz
force-pushed
the
feature/breaking-7
branch
from
November 24, 2026 16:59
58e3488 to
71d71b1
Compare
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
zayenz
force-pushed
the
feature/breaking-7
branch
from
November 25, 2026 21:35
71d71b1 to
230288b
Compare
zayenz
force-pushed
the
feature/breaking-7
branch
from
November 25, 2026 21:54
230288b to
7b5b02e
Compare
Enable modernize-use-ranges. The cumulatives test sorts by position through a projection, since std::ranges::sort needs more than the operator< that Event had.
Enable modernize-use-transparent-functors.
Enable modernize-min-max-use-initializer-list.
Enable modernize-use-constraints.
Enable readability-non-const-parameter.
Enable readability-else-after-return.
Enable readability-simplify-boolean-expr without De Morgan rewrites, and remove a dead branch in the Gist tree builder.
Enable readability-inconsistent-declaration-parameter-name, and update the parameter references in the Doxygen comments.
Enable readability-suspicious-call-argument. Its one report is a symmetric call.
Enable modernize-concat-nested-namespaces, and generate the same form. Shallower indentation lets clang-format repack the tables in the MiniModel tests.
Enable modernize-avoid-c-style-cast.
Enable modernize-avoid-variadic-functions.
Enable cppcoreguidelines-misleading-capture-default-by-value, cppcoreguidelines-missing-std-forward, google-build-explicit-make-pair, and google-global-names-in-headers.
Enable cppcoreguidelines-no-malloc.
Enable google-default-arguments.
Enable cert-err33-c with casts to void allowed.
Enable cppcoreguidelines-rvalue-reference-param-not-moved. Only the empty branch filter and print function take an rvalue without moving it.
Enable hicpp-exception-baseclass. FlatZinc::Error, AST::TypeError, and ShapeError now provide what(), and the tests that unwind with a thrown int use std::logic_error.
Enable misc-use-internal-linkage for functions.
Enable clang-analyzer cplusplus, deadcode, nullability, optin, security, unix, and valist, except the checks that only produce false positives here. Remove the dead stores this finds, including the unused search timer in Gist.
The per-check sweeps missed these. The names in declarations and definitions now agree, and Cutoff::geometric no longer calls its scale base in the definition; it passed them in the right order all along. The cumulative tests hold their usage table in a vector, which also removes the analyzer's report on an empty allocation.
Lint stops at the first failing stage, so the grammar actions and parser.hh were reached only once everything else passed. yyerror keeps external linkage, because the lexer calls it, and is now declared once in parser.hh; the other parser functions become static. Token strings come from strdup, so one helper holds the free the check has to allow. The windows and none blackbox sources and the headers no linted source includes get the same namespace form, which a lint here cannot reach.
Record why each excluded check does not fit, so that a later review starts from the reasons, and which fix-its need care. Also restore bugprone-unused-return-value, which the switch to whole groups excluded by mistake.
Removing the redundant parentheses around numeric_limits members in blackbox-exec.cpp exposed them to the min and max macros of windows.h, so define NOMINMAX as blackbox-backend.cpp does.
MSVC rejects the unqualified ArgsType in this conversion function.
zayenz
force-pushed
the
feature/breaking-7
branch
from
November 26, 2026 19:48
4c7a64a to
6b473d8
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the final PR of the eleven-PR Gecode 7 series, and the branch that originally held all of them. What remains here is the clang-tidy sweep: 80 commits, each enabling a single check or small group of checks and fixing what it reports, so every commit passes
misc/check.py lint.Most of the commits are small and mechanical: removing
(void)parameter lists, switching to nested namespaces, replacingtypedefwithusing, adopting range-based loops,contains(),empty(),starts_with(),make_unique, andmake_shared, dropping redundant casts andelseafterreturn, and matching parameter names between declarations and definitions.A smaller set of commits makes behavioral or API-visible changes and is worth a closer look:
NaryInterandNaryUnionpreviously dropped their free list when assigned to themselves.FlatZinc::Error,AST::TypeError, andShapeErrorfromstd::exceptionwithwhat(), and updates tests that threw rawintto usestd::logic_error._GNU_SOURCEinblackbox-backend.cpp), checks for likely swapped call arguments, checks that rvalue reference parameters are moved, givesBranchPlugina virtual destructor, and drops a default argument from a virtual function.cplusplus,deadcode,nullability,optin,security,unix,valist), removes dead stores (including an unused search timer in Gist), fixes a declaration/definition name mismatch inCutoff::geometric, and documents every remaining suppression in place.parser.hh, making internal parser helpersstaticand isolating thefree()ofstrduptoken strings in one helper.docs/code-style.mdrecords why each excluded clang-tidy check was left off so future reviews do not have to re-investigate them, and notes that new scoped enums may usePascalCaseenumerators (as inEndReason::Limit).Three late commits fix issues that CI caught on the earlier combined branch: a stray blank line in the unary test, defining
NOMINMAXinblackbox-exec.cppafter dropping parentheses aroundnumeric_limits, and re-qualifying a matrix slice conversion for MSVC. (Thecalc_dff_lower_boundtemplate parameter rename moved to #286, sincemainneeds it too.) I left them as separate commits rather than folding them back into the sweep commits they fix.The final two commits record the
.zdevdevelopment notes for the Gecode 7 work and then remove them so they are not merged intomain.Tested at the tip on macOS: the build produces no warnings; formatting, generated-source freshness, and
misc/check.py lintall pass; andcheckpasses 569 of 569.Stack
Merge in this order. #242, #282, #283, #241, #284, and #285 are merged. #286 targets
main, and each later PR builds on the one before it so its diff shows only its own commits. The first four PRs are standalone search and random-number changes; #284 through #274 are the Gecode 7 changes split out of what used to be a single branch.